home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat3
/
Tcl
/
strmatch.z
/
strmatch
Wrap
Text File
|
1998-10-30
|
2KB
|
67 lines
TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh((((3333TTTTccccllll)))) TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh((((3333TTTTccccllll))))
NNNNAAAAMMMMEEEE
Tcl_StringMatch - test whether a string matches a pattern
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ttttccccllll....hhhh>>>>
int
TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh(_s_t_r_i_n_g, _p_a_t_t_e_r_n)
AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
char*_s_t_r_i_n_g(in)
String to test.
char*_p_a_t_t_e_r_n(in)
Pattern to match against string. May contain special characters from the
set *?\[].
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
This utility procedure determines whether a string matches a given
pattern. If it does, then TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh returns 1. Otherwise
TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh returns 0. The algorithm used for matching is the same
algorithm used in the ``string match'' Tcl command and is similar to the
algorithm used by the C-shell for file name matching; see the Tcl manual
entry for details.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
match, pattern, string
PPPPaaaaggggeeee 1111